package com.huaxinkai.mobile.service;

import com.huaxinkai.mobile.entity.AccessToken;
import com.huaxinkai.mobile.entity.JsAPITicket;

public interface IUpdateAccessTokenService {
	/**
	 * 新增token
	 * @param at
	 * @throws Exception
	 */
	public void addAccessToken(AccessToken at) throws Exception;
	/**
	 * 更新token
	 * @param accessToken
	 * @throws Exception
	 */
	public void updateToken(AccessToken accessToken)  throws Exception;
	/**
	 * 查AccessToken by  id
	 * @return
	 * @throws Exception
	 */
	public AccessToken queryToken()  throws Exception;
	
	/**
	 * 查js ticke by  id
	 * @return
	 * @throws Exception
	 */
	public JsAPITicket queryTicket()  throws Exception;
	/**
	 * 新增token
	 * @param at
	 * @throws Exception
	 */
	public void addTicket(JsAPITicket ticket) throws Exception;
	/**
	 * 更新 js ticke 
	 * @return
	 * @throws Exception
	 */
	public void updateTicket(JsAPITicket ticket)  throws Exception;
	
}
